package vcp.app.utils;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class Settings {	
	private static Settings instance;
	private String PropertiesPath = "config/config.properties";
	private Properties prop;
	
	public Settings(){}
		
	public Properties getProperties() {
		File f = new File(PropertiesPath);
		if(f.exists()) {
			if(prop==null)
			    prop = new Properties();
			try {
				prop.load(new FileInputStream(PropertiesPath));
			} catch (FileNotFoundException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		return prop;
	}
}
